package com.mxpio.erp.common.purchase.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mxpio.erp.common.jpa.model.BizOrder;
import com.mxpioframework.security.annotation.Dict;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_PURC_INVOICE")
@ApiModel(value="采购发票")
public class PurcInvoice extends BizOrder {
	private static final long serialVersionUID = 1L;

	@Override
    public String initTypeCode() {
        return "PV1";
    }

    @Column(name = "INVOICE_NO_")
    @ApiModelProperty(value = "发票号")
    private String invoiceNo ;

    @Column(name = "INVOICE_TYPE_")
    @Dict(dicCode = "ERP_PURC_INVOICE_TYPE")
    @ApiModelProperty(value = "发票类型")
    private String invoiceType;

    @Column(name = "INVOICE_STATUS_")
    @Dict(dicCode = "ERP_COMMON_INVOICE_STATUS")
    @ApiModelProperty(value = "发票状态")
    private String invoiceStatus;

    @Column(name = "INVOICING_DATE_")
    @ApiModelProperty(value = "开票日期")
    private Date invoicingDate;

    @ApiModelProperty(value = "供应商编码")
    @Column(name = "SUPPLIER_CODE_")
    private String supplierCode;

    @ApiModelProperty(value = "供应商名称")
    @Column(name = "SUPPLIER_NAME_")
    private String supplierName;

    @ApiModelProperty(value = "开票单位")
    @Column(name = "INVOICING_COMPANY_")
    private String invoicingCompany;

    @ApiModelProperty(value = "部门")
    @Column(name = "DEPT_NAME_")
    private String deptName;

    @ApiModelProperty(value = "机构")
    @Column(name = "ORGANIZATION_")
    private String organization;

    @Column(name = "MEMO_")
    @ApiModelProperty(value = "备注")
    private String memo;
}
